Computer science Lesson Plan
Class: 7th - Lesson:10 Functions (Pre & user defined)

Purpose: Teach Functions (pre & user defined).Students should learn the usage of functions in the programming. (My blocks).

No. of Classes

One or two classes (Teacher's decision).

Materials Required

Computer,Scratch 3.0,Internet connection (Code.org)

Curriculum Content
  • 2.7)Functions
  • 2.9)Blocks
  • Prior knowledge

    Students should know what function is. And should be familiar with all basic concepts of scratch.

    Exercises

    Exercise:1



  • Create a scratch code to make a sprite walk. ( After doing this exercise Teacher has to explain that this code is done by using the pre-defined (inbuilt) functions in scratch.)
  • Exercise:2



  • There are multiple pumpkins in each patch! Look carefully at the function definitions below to figure out how to use each one.
  • No Image

    Click here to play this level.

    Exercise:3



  • Create a maths game using my blocks to perform mathematical operations. (Functions name should be add, sub, mul, div)
  • Solutions



  • Link to copy solution program for exercise-1.
  • Link to copy solution program for exercise-3.

  • Teacher's Instruction
    1. 1. Teachers should give their own creative activity to help Students understand pre-defined functions.(Using the predefined blocks in scratch.)
    2. 2. Teachers can use the video to know about pre & user defined functions.